package com.kaka.bus.engine.amount.loanproduct;


import com.kaka.bus.bean.BpmList;
import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.LoanProApplyBean;
import com.kaka.bus.bean.ProductDetailBean;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

import java.util.List;

public interface LoanProductContract {
    interface View extends BaseView {
        void getLoadProductDetailSuccess(HttpWrapper<LoanProApplyBean> applyBeanHttpWrapper);

        void getLoadImmediateBtnSuccess(HttpWrapper<LoanProApplyBean> applyBeanHttpWrapper);

        void getBpmListSuccess(HttpWrapper<List<BpmList>> bpmLists);

        void drainProductSuccess(HttpWrapper<ProductDetailBean> wrapper);

        void drainProductFail();
    }

    interface Presenter extends BasePresenter<LoanProductContract.View> {

        void loadProductDetail(String userid, String token, String tokenKey, String device, int productId);

        void getBpmList(String userId, String token, String productId);

        void getImmediateBtn(String userid, String token, String tokenKey, String device, int productId);

        void getDrainProduct(String per_id, String token, String device, String version, String tokenKey, String productId);

        void chargeApply(String productId, String bannerId, String perId, String chargeProductId);
    }
}
